package com.example.testdemo.demos.web.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 用户收货地址
 */

@Data
@TableName("tab_shipping_address")
public class ShippingAddress {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String userId;
    @NotBlank(message = "收货人不能为空")
    private String userName;
    @NotBlank(message = "手机号不能为空")
    private String telephone;
    private String province;
    private String city;
    private String area;
    private String detailedAddress;
    private String checked;
}
